import Index from '@/views/index/index.vue'
// 设备管理
export const deviceList = [
  {
    path: '/deviceList',
    component: Index,
    name: '设备管理',
    children: [
      {
        path: '/deviceList',
        name: 'deviceList',
        component: () => import('./../views/deviceList/deviceList.vue'),
        meta: {
          title: '设备列表'
        }
      },
      {
        path: '/deviceComponentList',
        name: 'deviceComponentList',
        component: () => import('./../views/deviceList/deviceComponentList.vue'),
        meta: {
          title: '组合列表-新'
        }
      }, {
        path: '/deviceDetail',
        name: 'deviceDetail',
        component: () => import('./../views/deviceList/deviceDetail.vue'),
        meta: {
          title: '设备详情'
        }
      }, {
        path: '/gatewayList',
        name: 'deviceDetail',
        component: () => import('./../views/deviceList/gatewayList.vue'),
        meta: {
          title: '设备详情'
        }
      }, {
        path: '/earTagList',
        name: 'earTagList',
        component: () => import('./../views/deviceList/earTagList.vue'),
        meta: {
          title: '设备详情'
        }
      }, {
        path: '/manufacturerList',
        name: 'manufacturerList',
        component: () => import('./../views/deviceList/manufacturerList.vue'),
        meta: {
          title: '设备详情'
        }
      }, {
        path: '/tahList',
        name: 'tahList',
        component: () => import('./../views/deviceList/tahList.vue'),
        meta: {
          title: '设备详情'
        }
      }, {
        path: '/switchGatewayList',
        name: 'switchGatewayList',
        component: () => import('./../views/deviceList/switchGatewayList.vue'),
        meta: {
          title: '开关网关'
        }
      }, {
        path: '/switchDeviceList',
        name: 'switchDeviceList',
        component: () => import('./../views/deviceList/switchDeviceList.vue'),
        meta: {
          title: '开关设备'
        }
      }
    ]
  }
]
// 牲畜管理 - 废
// export const livestock = [
//   {
//     path: '/livestock',
//     component: Index,
//     name: '牲畜管理',
//     children: [
//       {
//         path: '/livestockList',
//         name: 'livestockList',
//         component: () => import('./../views/livestockList/livestockList.vue'),
//         meta: {
//           title: '牲畜列表'
//         }
//       }, {
//         path: '/livestockDetail',
//         name: 'livestockDetail',
//         component: () => import('./../views/livestockDetail/livestockDetail.vue'),
//         meta: {
//           title: '牲畜管理'
//         }
//       }
//     ]
//   }
// ]
// 牲畜管理
export const livestock = [
  {
    path: '/livestock',
    component: Index,
    name: '牲畜管理',
    children: [
      {
        path: '/livestockTypeList',
        name: 'livestockTypeList',
        component: () => import('./../views/livestock/livestockTypeList.vue'),
        meta: {
          title: '品种列表'
        }
      },
      {
        path: '/livestockList',
        name: 'livestockList',
        component: () => import('./../views/livestock/livestockList.vue'),
        meta: {
          title: '品种列表'
        }
      }, {
        path: '/livestockChangeRecord',
        name: '转栏记录',
        component: () => import('./../views/livestock/livestockChangeRecord.vue'),
        meta: {
          title: '牲畜管理'
        }
      }, {
        path: '/livestockOutRecord',
        name: '出栏记录',
        component: () => import('./../views/livestock/livestockOutRecord.vue'),
        meta: {
          title: '牲畜管理'
        }
      }
    ]
  }
]

// 权限管理
export const authority = [
  {
    path: '/roleList',
    component: Index,
    name: '牲畜管理',
    children: [
      {
        path: '/roleList',
        name: 'authority',
        component: () => import('./../views/role/authority.vue'),
        meta: {
          title: '角色列表'
        }
      },
      {
        path: '/adminRoleList',
        name: 'adminRoleList',
        component: () => import('./../views/role/adminRoleList.vue'),
        meta: {
          title: '牲畜列表'
        }
      }
    ]
  }
]

// 用户管理
export const user = [
  {
    path: '/user',
    component: Index,
    name: '用户管理',
    children: [
      {
        path: '/userList',
        name: 'userList',
        component: () => import('./../views/user/userList.vue'),
        meta: {
          title: '用户列表'
        }
      },
      {
        path: '/userDetail',
        name: 'userDetail',
        component: () => import('./../views/user/userDetail.vue'),
        meta: {
          title: '用户详情'
        }
      }
    ]
  }
]

// 公司管理
export const company = [
  {
    path: '/company',
    component: Index,
    name: '公司管理',
    children: [
      {
        path: '/companyList',
        name: 'companyList',
        component: () => import('./../views/company/companyList.vue'),
        meta: {
          title: '公司列表'
        }
      }
    ]
  }
]

// 牧场管理
export const ranch = [
  {
    path: '/ranch',
    component: Index,
    name: '牧场管理',
    children: [
      {
        path: '/ranchList',
        name: 'ranchList',
        component: () => import('./../views/ranch/ranchList.vue'),
        meta: {
          title: '牧场列表'
        }
      },
      {
        path: '/penList',
        name: 'penList',
        component: () => import('./../views/ranch/penList.vue'),
        meta: {
          title: '圈棚列表'
        }
      },
      {
        path: '/styList',
        name: 'styList',
        component: () => import('./../views/ranch/styList.vue'),
        meta: {
          title: '栏舍列表'
        }
      }
    ]
  }
]

// 组合设备
export const deviceGroup = [
  {
    path: '/deviceGroup',
    component: Index,
    name: '设备组合',
    children: [
      {
        path: '/deviceGroupList',
        name: 'deviceGroupList',
        component: () => import('./../views/deviceGroup/deviceGroupList.vue'),
        meta: {
          title: '组合列表'
        }
      }
    ]
  }
]
